Exit (int n) is actually a direct exitProgramBecause the default standard program entry isInt main (INT argc, char ** argv), the return value is int type.Generally, run a program under the shell and run the echo $? Command? You can get the return
ACL Standard Control List and extended control list lo0: 2.2 r1 (R2) s1/0 ---- s2/0 r1 (R1) lo0 1.1 s1/0 -------- s2/0 r3 lo0 3.3 step 1... www.2cto.com r1: en config t hostname R2 no ip domain-lookup lin 0 exec-timeout 0 0 logging syn exit int lo 0
1. Finish () method
This method can end the current activity, but if your app has many activities, it seems a little too slow to use this method.In addition, there is also a method finishactivity (INT requestcode). For this method, first look at the
1. Finish () methodThis method can end the current activity, but if your App has a lot of activity, it's a little bit stretched.In addition, there is a method finishactivity (int requestcode), about this method, first look at the SDK API description!
Stdlib. H Content/**** Stdlib. H-declarations/definitions for commonly used library functions** Copyright (c) 1985-1997, Microsoft Corporation. All rights reserved.** Purpose:* This include file contains the function declarations for commonly* Used
1. Process Termination
There are eight ways to terminate the process
(1) return from main
(2) Call exit;
(3) Call _ exit or _ exit;
(4) The last thread returns from its startup history
(5) The last thread calls pthread_exit;
There are three methods
Exit () ends the current process/current program/. In the whole program, it ends when exit is called.
Return () is the return of the current function. Of course, if it is in the main function, the current process is naturally ended. If it is not, it
The main differences between the Exit function and the return function are:
Exit is used to end the program at any time while the program is running, and its parameters are returned to the OS. You can also say this: The Exit function exits the
650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/060552O24-0.png "title =" simple vpn .png "/>
The IP address range 192.168.1.0 can be pinged to the IP address range 192.168.2.0.
R1:
Conf ter
Int f1/0
Ip add 12.1.1.1255.255
DescriptionSystem.exit()The essence is to notify the JVM to shut down.Generally speaking. There are two ways System.exit() to disable this:
Security Manager
Security Policy
The essence is the local implementation provided by the
DHCP relay principle and Configuration
Application scenarios:
When the number of hosts in a network is large, manual IP Address allocation is not only troublesome but also prone to errors. The emergence of the DHCP service greatly facilitates the
1.System class and runtime class 1.1System classThe system class is not unfamiliar to us, and in the previously learned knowledge, when we need to print the results, we use the "System.out.println ()" Statement to print out the code, which uses the
R5;
Enable
Config t
Hostname R5
Int s1/1
Ip add 192.168.56.1 255.255.255.0
No shutdown
Exit
Int s1/2
Ip add 192.168.57.1 255.255.255.0
No shutdown
Exit
Router ospf 100
Network 192.168.57.0 0.0.0.255 area 0
Network 192.168.56.0 0.0.0.255 area 0
End
Lien0000342014-10-021. Process Termination Method
There are eight methods to terminate a process, five of which are normal termination. They are
1. Return from main.
2. Call exit.
3. Call _ exit or _ exit.
4. The last thread is returned from its
1. process start:The C program is executed from the main function. The prototype is as follows:Int main (INT argc, char * argv []);Generally, the return value of main is int type, and 0 is returned correctly.If the return value of main is void or
Recently learned to do Android game development time, found that the Android exit can not completely shut down the problem, such as: A program in the new n multiple thread, so in the exit program may not completely shut down, and finally found that
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.